package com.jn.erp.web.api.student.entity.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
public class StudentClueDto{

    @Excel(name ="姓名",orderNum = "0")
    @ApiModelProperty(value = "姓名")
    private String name;

    @Excel(name ="手机号",orderNum = "1")
    @TableField(exist = false)
    @ApiModelProperty(value = "电话")
    private String mobile;

    @Excel(name ="性别",orderNum = "2",replace = {"男_0", "女_1","未知_2"})
    @ApiModelProperty(value = "性别")
    //    0 男 1 女
    private Integer gender;

    @Excel(name ="年龄",orderNum = "4")
    @ApiModelProperty(value = "年龄")
    private Integer age;

    @Excel(name ="出生日期",orderNum = "6")
    @ApiModelProperty(value = "生日")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate birthday;

    @Excel(name ="就读学校",orderNum = "7")
    @TableField(exist = false)
    @ApiModelProperty(value = "学校名称")
    private String schoolName;

    @Excel(name ="当前年级",orderNum = "8")
    @TableField(exist = false)
    private String gradeName;

    @Excel(name ="学员来源",orderNum = "10")
    @ApiModelProperty(value = "加入方式")
    private String joinWay;

    @Excel(name ="学员创建人",orderNum = "16")
    @ApiModelProperty(value = "创建者")
    private String creatName;

    @Excel(name = "备注",orderNum = "17")
    @ApiModelProperty(value = "备注")
    private String remark;

    @Excel(name = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime addTime;


    @Excel(name ="课程名称")
    private String courseName;
}
